<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Honeydew管理介面</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Jquery -->
<script src="http://code.jquery.com/jquery.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<!-- carousel -->
<link href="${pageContext.request.contextPath}/css/carousel.css" rel="stylesheet" />
<!-- Bootstrap -->
<link href="${pageContext.request.contextPath}/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="${pageContext.request.contextPath}/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>
<!-- responsive -->
<link href="${pageContext.request.contextPath}/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
<!-- holder -->
<script src="${pageContext.request.contextPath}/holder/holder.js"></script>
<!-- commons -->
<link href="${pageContext.request.contextPath}/css/commons.css" rel="stylesheet" />

<!-- Manage -->
<script src="${pageContext.request.contextPath}/js/manage.js"></script>
<script>
$(function() {
  $( "input[name*='orderInformationBo.Processfinaldate']" ).datepicker({
  	dateFormat: "yy-mm-dd"
  });
  $( "input[name*='orderInformationBo.Outorderdate']" ).datepicker({
	  	dateFormat: "yy-mm-dd"
	  });
  
});
</script>
</head>

<body>
<s:set var="theme" value="'simple'" scope="page" />
<s:form action="saveCreateOrderInformation">
	<h1>訂單資訊管理</h1>
	<table width="100%" height="100%">
		<tr>
			<td>
				<s:include value="manage_head.jsp" />
			</td>
		</tr>
		<tr>
			<td>
				<s:hidden theme="simple" id="orderInformationBo.Seqid" name="orderInformationBo.Seqid" />
				<table width="100%" class="table table-bordered">
					<tr>
						<th>訂單編號</th>
						<td colspan="1">
							<s:property value="orderInformationBo.Number" />
							<s:hidden theme="simple" id="orderInformationBo.Number" name="orderInformationBo.Number" />
						</td>
						<th>匯款帳號</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Account" name="orderInformationBo.Account" />
						</td>
					</tr>
					<tr>
						<th>付款方式</th>
						<td colspan="1">
							<select id="paymentMethodBo.Seqid" name="paymentMethodBo.Seqid">
								<s:iterator value="paymentMethodList">
									<option value="<s:property value='Seqid'/>"><s:property value="Paymentname"/></option>
								</s:iterator>
							</select>
						</td>
						<th>運送方式</th>
						<td colspan="1">
							<select id="transportMethodBo.Seqid" name="transportMethodBo.Seqid">
								<s:iterator value="transportMethodList">
									<option value="<s:property value='Seqid'/>"><s:property value="Transportname"/> - $<s:property value="Transportprice"/>元</option>
								</s:iterator>
							</select>
						</td>
					</tr>
					<tr>
						<th>最後處理日期</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.ProcessfinaldateStr" name="orderInformationBo.ProcessfinaldateStr" />
						</td>
						<th>出貨日期</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.OutorderdateStr" name="orderInformationBo.OutorderdateStr" />
						</td>
					</tr>
					<tr>
						<th>到店取貨</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Storeget" name="orderInformationBo.Storeget" />
						</td>
						<th>7-11取貨</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Sevenelevenstore" name="orderInformationBo.Sevenelevenstore" />
						</td>
					</tr>
					<tr>
						<th>收貨地址</th>
						<td colspan="3">
							<s:textfield theme="simple" id="orderInformationBo.Receiveaddress" name="orderInformationBo.Receiveaddress" />
						</td>
					</tr>
					<tr>
						<th>收貨時段</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Receivetime" name="orderInformationBo.Receivetime" />
						</td>
						<th>收貨姓名</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Receivename" name="orderInformationBo.Receivename" />
						</td>
					</tr>
					<tr>
						<th>手機號碼</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Handphone" name="orderInformationBo.Handphone" />
						</td>
						<th>連絡電話</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Localphone" name="orderInformationBo.Localphone" />
						</td>
					</tr>
					<tr>
						<th>商品總數量</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Totalitems" name="orderInformationBo.Totalitems" />
						</td>
						<th>訂單總金額</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Totalmoney" name="orderInformationBo.Totalmoney" />
						</td>
					</tr>
					<tr>
						<th>特價金額</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Salemoney" name="orderInformationBo.Salemoney" />
						</td>
						<th>使用購物金金額</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Useshoppingmoney" name="orderInformationBo.Useshoppingmoney" />
						</td>
					</tr>
					<tr>
						<th>實際應付金額</th>
						<td colspan="1">
							<s:textfield theme="simple" id="orderInformationBo.Realpaymoney" name="orderInformationBo.Realpaymoney" />
						</td>						
					</tr>
					<tr>
						<th>訂單狀態</th>
						<td colspan="1">
							<s:select theme="simple" id="orderInformationBo.State" name="orderInformationBo.State" list="#{1:'訂單成立', 2:'訂單已付款', 3:'訂單已出貨', 4:'訂單失效'}"></s:select>
						</td>						
						<th>備註</th>
						<td colspan="1">
							<s:textarea theme="simple" id="orderInformationBo.Remark" name="orderInformationBo.Remark" cols="50" rows="5"></s:textarea>
						</td>
					</tr>
				</table>
				<div align="right">
					<s:submit id="saveBtn" cssClass="btn" value="儲存" />
				</div>
				
			</td>
		</tr>
	</table>
</s:form>
</body>
</html>